import App from './App'
import http from "@/common/js/http.js"
import store from './store'
import "@/common/css/main.css"
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.prototype.$store = store
Vue.prototype.baseUrl = http.baseUrl;
Vue.prototype.domainUrl = http.domainUrl;
Vue.prototype.$api = http;

Vue.prototype.toast = function(msg, icon = 'none') {
	uni.showToast({
		icon: icon,
		title: msg
	});
}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif